<?php

use think\facade\Route;

Route::group('', function () {
    Route::rule('index', 'index')->name('index_index');
    Route::rule('link', 'friendlink')->name('index_friend_link');
})->prefix('index/');


Route::group('', function () {
    Route::rule('read/:id', 'read')->name('article_read');
})->prefix('article/');


Route::group('', function () {
    Route::post('publish', 'publish')->name('comment_publish');
    Route::get('list', 'list')->name('comment_list');
    Route::post('likeordislike', 'likeOrDislike')->name('comment_like_or_dislike');

})->prefix('comment/');

Route::group('', function () {
    Route::rule('search', 'index')->name('search_index');
})->prefix('search/');

Route::group('', function () {
    Route::rule('login', 'login')->name('auth_login');
    Route::rule('register', 'register')->name('auth_register');
})->prefix('auth/');

Route::get('captcha/[:s]', '\\think\\captcha\\captchacontroller@index');

